/* Save Support */
function checkFormSave(i)
{
	var id = 'strValue';
	id = i ? (id+'_'+i) : id;
	var e = $('#'+id);
	if(!e.val())
	{
		e.focus();
		return false;
	}
	
	var id = 'intType';
	id = i ? (id+'_'+i) : id;
	var e = $('#'+id);
	if(!e.val())
	{
		e.focus();
		return false;
	}
	
	var id = 'intOrder';
	id = i ? (id+'_'+i) : id;
	var e = $('#'+id);
	if(!e.val())
	{
		e.focus();
		return false;
	}
	
	showWaiting();
	return true;
}

function saveDone(v)
{
	if(v==0)
	{
		window.location.href = gPageRootUrl;
	}
	hideBlockUI();
}
/* Save Support */

var gCName = 'support';
function doAction(act, act_value, id)
{
	var strListId = '';
	strListId = (id==0) ? getListCheckedValue('chk') : id;
	if (strListId)
	{
		var isCookie = gFunction.readCookie(v_cookieShowConfirm);
		if ( !isCookie )
		{
			var msg = getMsg(act);
			if (msg)
			{
				showConfirm(msg, act, act_value, strListId, gCName);
			}
		}
		else
		{
			doActionOnForm(act, act_value, strListId, gCName);
		}
	}
}

function getMsg(act)
{
	var msg = '';
	if(act=='delete')
	{
		msg = gLang.support['msg_delete'];
	}
	return msg;
}